define([],()=>{
    class Hp{
        constructor(){
            this.init()
        }
        init(){
            var a = document.querySelectorAll('.left>dl>dt>span')
            var b = document.querySelectorAll('.right>.intro')
            // console.log(b[0])
            for(let i=0;i < a.length;i++){
                a[i].onclick = ()=>{
                    for(var j=0;j<a.length;j++){
                        a[j].classList.remove('active')
                        b[j].style.display = 'none'
                        console.log(b[j])
                    }
                    a[i].classList.add('active')
                    b[i].style.display = 'block'
                }
            }
        }
    }
    return {
        Hp : new Hp()
    }
})